package isjinhao.jlox.grammar.code.represention;

import isjinhao.jlox.grammar.code.visitor.CodeVisitor;
import isjinhao.jlox.grammar.statement.represention.Statement;
import lombok.Getter;

/**
 * @Author ISJINHAO
 * @Date 2021/2/28 13:50
 */
@Getter
public class StatementCode extends Code{

    private Statement statement;

    @Override
    public <R> R accept(CodeVisitor<R> codeVisitor) {
        return codeVisitor.visitStatementCode(this);
    }

    public StatementCode(Statement statement) {
        this.statement = statement;
    }

}
